﻿using AbpOne.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace AbpOne.EntityFrameworkCore.DbMigrations.EntityFrameworkCore {
    /// <summary>
    /// 数据迁移上下文访问对象
    /// </summary>
    public class AbpOneMigrationsDbContext : AbpDbContext<AbpOneMigrationsDbContext> {
        public AbpOneMigrationsDbContext(DbContextOptions<AbpOneMigrationsDbContext> options) : base(options) {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder) {
            base.OnModelCreating(modelBuilder);

            modelBuilder.Configure();
        }
    }
}